package com.itheima.sh.n_singleinstance;

public class Test02 {
    public static void main(String[] args) {
        B b1 = B.getInstance();//第一次拿对象
        B b2 = B.getInstance();
        System.out.println(b1==b2);
    }
}
